﻿using System;
using System.Collections.Generic;
using System.Text;

namespace LeafHttp
{
    /// <summary>
    /// Http内容类型常量
    /// </summary>
    public class HttpContentType
    {
        /// <summary>
        /// HTML格式
        /// </summary>
        public const string Text_html = "text/html";
        /// <summary>
        /// 纯文本格式
        /// </summary>
        public const string Text_plain = "text/plain";
        /// <summary>
        /// XML格式
        /// </summary>
        public const string Text_xml = "text/xml";
        /// <summary>
        /// gif图片格式
        /// </summary>
        public const string Image_gif = "image/gif";
        /// <summary>
        /// jpg图片格式
        /// </summary>
        public const string Image_jpeg = "image/jpeg";
        /// <summary>
        /// png图片格式
        /// </summary>
        public const string Image_png = "image/png";
        /// <summary>
        /// XHTML格式
        /// </summary>
        public const string Application_xhtml_xml = "application/xhtml+xml";
        /// <summary>
        /// XML数据格式
        /// </summary>
        public const string Application_xml = "application/xml";
        /// <summary>
        /// Atom XML聚合格式
        /// </summary>
        public const string Application_atom_xml = "application/atom+xml";
        /// <summary>
        /// JSON数据格式
        /// </summary>
        public const string Application_json = "application/json";
        /// <summary>
        /// pdf格式
        /// </summary>
        public const string Application_pdf = "application/pdf";
        /// <summary>
        /// Word文档格式
        /// </summary>
        public const string Application_msword = "application/msword";
        /// <summary>
        /// 二进制流数据（如常见的文件下载）
        /// </summary>
        public const string Application_octet_stream = "application/octet-stream";
        /// <summary>
        /// form表单数据被编码为key/value格式发送到服务器（表单默认的提交数据的格式）
        /// </summary>
        public const string Application_x_www_form_urlencoded = "application/x-www-form-urlencoded";
        /// <summary>
        /// 需要在表单中进行文件上传时，就需要使用该格式
        /// </summary>
        public const string Multipart_form_data = "multipart/form-data";
    }
}
